const images = [
    'url(image/Register_background.jpg)',
    'url(image/Register_backgrounds.jpg)',
    'url(image/Login_background.jpg)'
];
let currentIndex = 0;

function changeBackground() {
    document.querySelector('.carousel-background').style.backgroundImage = images[currentIndex];
    currentIndex = (currentIndex + 1) % images.length;
}

changeBackground();


setInterval(changeBackground, 3000);